﻿using System;
using DSFramework;
using UnityEngine;

public class DestoryForTime : MonoBehaviour
{
    public float time = 1;

    private void Start()
    {
     Invoke("Destroy",time);   
    }

    private void Destroy()
    {
        gameObject.Destroy();
    }
}